/**
 * Created by tangwen on 16/9/30.
 */
import java.awt.Graphics;
import javax.swing.JPanel;

public class Ovals extends JPanel{
    public void paintComponent(Graphics g){
        super.paintComponent(g);
        for (int i = 0; i < 12; i++){
            g.drawOval( i * 10, i * 10, 240 - i * 20, 240 - i * 20 );
        }
    }
}
